import unittest
import HTMLTestRunner

dir = "./"
suite = unittest.TestLoader().discover(dir, "test_*.py")

if __name__ == "__main__":
    fp = open("./report.html", "wb")
    runner = HTMLTestRunner.HTMLTestRunner(
        stream=fp,
        title="bai test title",
        description="软件1班百度单元测试演示报告描述"
    )

    runner.run(suite)
    fp.close()
